import request from '@/utils/request'
// 获取学科列表
export const subjectList = (params) => {
  return request({
    url: '/subject/list',
    params
  })
}
// 新增学科
export const subjectAddPost = (data) => {
  return request({
    url: '/subject/add',
    method: 'post',
    data
  })
}
// 删除学科
export const subjectRemove = (data) => {
  return request({
    url: '/subject/remove',
    method: 'post',
    data
  })
}
// 编辑学科
export const subjectEdit = (data) => {
  return request({
    url: '/subject/edit',
    method: 'post',
    data
  })
}
// 学科状态
export const subjectStatus = (data) => {
  return request({
    url: '/subject/status',
    method: 'post',
    data
  })
}
